<template>
  <!-- 图例 -->
  <div class="metric-legend noselect qs-legend">
    <span style="width:12.5%">VSM</span><span style="width: 12.5%">0.1</span><span style="width: 12.5%">0.2</span><span
    style="width: 12.5%">0.3</span><span style="width: 12.5%">0.4</span><span style="width: 12.5%">0.5</span><span
    style="width: 12.5%">0.6</span><span style="width: 12.5%">1</span>
  </div>
</template>

<script>
export default {
  name: 'VsmLegend'
}
</script>

<style scoped>
  .metric-legend {
    background-color: #7c7c7c;
    white-space: nowrap;
    font-size: 12px;
    box-shadow: 0 0 4px 0 black;
  }

  .metric-legend span {
    display: inline-block;
    line-height: 1.5;
    text-align: center;
    vertical-align: middle
  }

  .noselect {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none
  }

  .qs-legend {
    color: white;
    background: rgba(0, 0, 0, 0) linear-gradient(to right,
    rgb(167, 93, 166),
    rgb(167, 93, 166),
    rgb(167, 93, 166),
    rgb(167, 93, 166),
    rgb(164, 96, 162),
    rgb(168, 91, 91),
    rgb(98, 122, 161),
    rgb(98, 122, 161),
    rgb(90, 169, 92),
    rgb(91, 168, 99),
    rgb(91, 168, 99)) repeat scroll 0% 0%;
  }
</style>
